package com.chagee.store.operation.server.facade;

import com.chagee.base.utils.*;
import com.chagee.store.operation.api.request.SearchSupplierRequest;
import com.chagee.store.operation.api.response.SearchSupplierResponse;
import com.chagee.store.operation.server.model.param.StoreTaskRelationDetailParam;
import com.chagee.store.operation.server.model.param.StoreTaskRelationRequest;
import com.chagee.store.operation.server.model.param.UpdateDateRequest;
import com.chagee.store.operation.server.model.response.StoreTaskRelation2SetVO;
import com.chagee.store.operation.server.model.response.StoreTaskRelationDetailResponse;
import com.chagee.store.operation.server.service.biz.StoreTaskRelationBizService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author : hk
 * @Date : 2024/7/2
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class StoreTaskRelationFacade {


	@Resource
	private StoreTaskRelationBizService storeTaskRelationBizService;

	public StoreTaskRelationDetailResponse queryDetail(StoreTaskRelationRequest request) {
		return storeTaskRelationBizService.queryDetail(request);
	}

	public Boolean deleteStoreTask(List<Long> request) {
		return storeTaskRelationBizService.deleteStoreTaskRelation(request);
	}

	public StoreTaskRelation2SetVO addStoreTaskQueryBasicTask(String StoreNo) {
		return storeTaskRelationBizService.addStoreTaskQueryBasicTask(StoreNo);
	}

	public Boolean addStoreTaskSave(StoreTaskRelationDetailParam request) {
		return storeTaskRelationBizService.addStoreTaskSave(request);
	}

	public Boolean updateStoreDetailData(UpdateDateRequest request) {
		return storeTaskRelationBizService.updateStoreDetailData(request);
	}

	public PaginationData<SearchSupplierResponse> searchSupplier(PaginationRequest<SearchSupplierRequest> request) {
		PaginationData<SearchSupplierResponse> paginationData = storeTaskRelationBizService.searchSupplier(request);
		return paginationData;
	}
}
